import axios from "../api"; // 导入接口配置
/**
 * 新增/修改站台配置
 * @param params
 * @returns
 */
export const UpdateStationConfiguration = async (params: any) => {
  return await axios.post(
    "/api/WorkStationSetup/UpdateStationConfiguration",
    params
  );
};

/**
 * 获取站台配置
 * @param params
 * @returns
 */
export const GetStationConfiguration = async (params: any) => {
  return await axios.post(
    "/api/WorkStationSetup/GetStationConfiguration",
    params
  );
};

/**
 * A2页面2-2图表数据绑定
 * @param params
 * @returns
 */
export const InsertA2BindData = async (params: any) => {
  return await axios.post("/api/TypeAPage/InsertA2BindData", params);
};

/**
 * 获取绑定数据
 * @param params
 * @returns
 */
export const GetA2BindData = async (params: any) => {
  return await axios.post("/api/TypeAPage/GetA2BindData", params);
};

/**
 * 获取OEE数据
 * @param params
 * @returns
 */
export const GetAllOEEData = async (params: any) => {
  return await axios.post("/api/OEEData/GetAllOEEData", params);
};

/**
 * 删除工作站配置
 * @param params
 * @returns
 */
export const DeleteStationConfiguration = async (params: any) => {
  return await axios.post(
    "/api/WorkStationSetup/DeleteStationConfiguration",
    params
  );
};

/**
 * 删除工作站配置
 * @param params
 * @returns
 */
export const GetAllProperty = async (params: any) => {
  return await axios.post("/api/TypeAPage/GetAllProperty", params);
};

/**
 * 删除工作站配置
 * @param params
 * @returns
 */
export const GetProduceInfo = async (params: any) => {
  return await axios.post("/api/TypeAPage/GetProduceInfo", params);
};

/**
 * 删除工作站配置
 * @param params
 * @returns
 */
export const GetAllStationList = async (params: any) => {
  return await axios.post("/api/WorkStationSetup/GetAllStationList", params);
};

/**
 * 查询流程节点列表
 * @param params
 * @returns
 */
export const GetAllPlcData = async (params: any) => {
  return await axios.post("/api/TypeAPage/GetAllPlcData", params);
};

/**
 * 获取A2页面流程信息
 * @param params
 * @returns
 */
export const GetDeviceState = async (params: any) => {
  return await axios.post("/api/TypeAPage/GetDeviceState", params);
};

/**
 * 根据估计设备编码参数类型参数名称查询参数备注
 * @param params
 * @returns
 */
export const GetMobprambydevicecode = async (params: any) => {
  return await axios.post("/api/Test/GetMobprambydevicecode", params);
};

/**
 * 根据估计设备编码参数类型参数名称修改参数备注
 * @param params
 * @returns
 */
export const PostMobprambydevicecode = async (params: any) => {
  return await axios.post("/api/Test/PostMobprambydevicecode", params);
};
